import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 东莞呵呵
 * Date:2022-04-24
 * Time:15:03
 */
public class TestDemo10 {
    public static void main(String[] args) {
        boolean flag=true;
        Scanner scanner = new Scanner(System.in);
        int n= scanner.nextInt();
        if(n<2){
            System.out.println(n+"不是素数");
        }else{
            for (int i = 2; i < n; i++) {
                if(n%i==0){
                    flag=false;
                    break;
                }
            }
            if(flag==true){
                System.out.println(n+"是素数");
            }else{
                System.out.println(n+"不是素数");
            }
        }

    }
}
